package myutils;

public class MessageHelper {

    private String message;
    final String newLine = System.getProperty("line.separator");

    public MessageHelper() {
        this.message = "";
    }

    public MessageHelper addMessage(String msg) {

        message = message.isEmpty() ? msg : message + newLine + msg;
        return this;
    }

    public String getCompleteMessage() {

        return message;
    }
    
    public void clearCompleteMessage(){
        message = "";
    }

}
